package com.zvan.a;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zhangv on 2017/9/25.
 */
@SpringBootApplication
@EnableEurekaClient
@RestController
public class ServiceAApplication {
    @Value("${server.port}")
    String port;

    @RequestMapping("/hi")
    public String home() {
        return "Hello World,port:" + port;
    }


    public static void main(String[] args) {

        SpringApplication.run(ServiceAApplication.class, args);
    }


}
